package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.NftRegionBinding;
import com.sc.nft.entity.dto.NftRegionBindingPageDTO;
import com.sc.nft.entity.vo.NftRegionBindingPageVO;
import com.sc.nft.entity.vo.NftRegionBindingUserVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * nft版权部分绑定(NftRegionBinding)表数据库访问层
 *
 * @author 王伟成
 * @since 2023-10-11 16:47:36
 */
public interface NftRegionBindingMapper extends BaseMapper<NftRegionBinding> {

    Page<NftRegionBindingPageVO> nftRegionBindingPage(@Param("mp") Page mp, @Param("nftRegionBindingPageDTO") NftRegionBindingPageDTO nftRegionBindingPageDTO);

    List<NftRegionBindingUserVO> listBindUserId();

    List<NftRegionBinding> listNftBindByProvinceAndCityAndRegion(@Param("province") String province, @Param("city") String city, @Param("region") String region, @Param("time") Date time);
}
